﻿<!-- BEGIN MAIN CONTENT -->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN: ACCORDION DEMO -->
        <div class="portlet light">
            <div class="portlet-title page-bar">
                <ul class="page-breadcrumb pull-right">
                    <li>
                        <i class="fa fa-home"></i>
                        <a href="#/home.html">管理中心</a>
                        <i class="fa fa-angle-right"></i>
                    </li>
                    <li>
                        <a href="javascript:;" data-ng-bind="$state.current.data.pageTitle"></a>
                    </li>
                </ul>
                <div class="caption font-green-sharp">
                    <i class="icon-list font-green-sharp"></i>
                    <span class="caption-subject bold uppercase" data-ng-bind="$state.current.data.pageTitle"></span>
                </div>
            </div>
            <div class="portlet-body">
                <div class="row">
                    <div class="col-sm-5">
                        <a ng-href="{{currentInfo.addLink}}" class="btn green-haze btn-outline sbold uppercase"> <i class="fa fa-plus"></i> 添加</a>
                        <button href="#" class="btn red-haze btn-outline sbold uppercase" ng-click="sortSave()" ng-if="showSortSaveBtn"> <i class="fa fa-sort-alpha-asc"></i> 保存排序 </button>
                    </div>
                    <div class="col-sm-3"></div>
                    <div class="col-sm-4">
                    </div>
                </div>
                <div class="row margin-top-10">
                    <div class="col-xs-12">
                        <div ng-if="data.Count>0">
                            <div class="dd-item dd3-item" ng-change="sortChange()" ng-model="currentInfo.cateData" ng-nestable data-id="{{$item.id}}">
                                <div class="dd-handle dd3-handle"> </div>
                                <div class="dd3-content" ng-nestable-item> [{{$item.id}}]{{$item.text}}
                                    <div class="pull-right">
                                        <a href="{{currentInfo.addLink+'&id='+$item.id}}" class="btn btn-xs blue sbold"> <i class="fa fa-edit"></i> 修改 </a>
                                        <button class="btn red btn-xs" ng-click="deleteOne($item)" ng-if="$item.child==0"> <i class="fa fa-save"></i> 删除 </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="alert alert-info" ng-if="data.Count==0">
                            <strong>提示：</strong> 没有 <span ng-bind="$state.current.data.pageTitle"></span> 数据
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- END: ACCORDION DEMO -->
    </div>
</div>
<!-- END MAIN CONTENT -->